package com.example.accessconnector.util;

/**
 * @author 15037
 * @description
 * @date 2025-04-25 18:10
 */

public class AccessSqlBuilder {

    StringBuilder sqlBuilder;


    public AccessSqlBuilder() {
        this.sqlBuilder = new StringBuilder();
    }

    public StringBuilder getSqlBuilder() {
        return sqlBuilder;
    }

    public StringBuilder setSqlBuilder(String sql) {
        this.sqlBuilder = new StringBuilder(sql);
        return sqlBuilder;
    }


    public StringBuilder append(String s) {
        return sqlBuilder.append(s);
    }

    public StringBuilder append(String s, String s1) {
        return sqlBuilder.append(s + " '" + s1+"'");
    }

    public StringBuilder append(String s, String s1, String s2) {
        return sqlBuilder.append(s + " " + s1 + " '" + s2+"'");
    }


    public StringBuilder appendDateTime(String s, String s1, String s2) {
        return sqlBuilder.append(s + " " + s1 + " #" + s2+"#");
    }
}
